import urllib;
import sys;

oe = urllib.FancyURLopener({});

if ("mn" in sys.argv[1:len(sys.argv)]):
	print "Grabbing mn-rss...";
	f = oe.open("http://www.manganews.net/rss.php");
	data = f.read();
	rss_out = open("mn-rss", 'w');
	rss_out.write(data);
	rss_out.close();
	print "Done.";

if ("mu" in sys.argv[1:len(sys.argv)]):
	print "Grabbing mu-rss...";
	f = oe.open("http://www.mangaupdates.com/rss.php");
	data = f.read();
	rss_out = open("mu-rss", 'w');
	rss_out.write(data);
	rss_out.close();
	print "Done.";

if ("ma" in sys.argv[1:len(sys.argv)]):
	print "Grabbing ma-rss...";
	f = oe.open("http://www.mahou.org/RSS/RSS/Manga.rss");
	data = f.read();
	rss_out = open("ma-rss", 'w');
	rss_out.write(data);
	rss_out.close();
	print "Done.";

if ("aw" in sys.argv[1:len(sys.argv)]):
	print "Grabbing aw-html...";
	f = oe.open("http://www.animewaves.net/index.php");
	data = f.read();
	rss_out = open("aw-html", 'w');
	rss_out.write(data);
	rss_out.close();
	print "Done.";
	
print "All done.";